---
layout: example
categories: example/v1.0.0
version: v1.0.0
title: Plain Leaflet API
description: Using Mapbox.js you can use the Leaflet API exclusively.
tags:
  - leaflet
---
<div id='map'></div>

<script>
    
var mapboxTiles = L.tileLayer('{{site.tileApi}}/styles/v1/mapbox/streets-v11/tiles/{z}/{x}/{y}?access_token=' + L.mapbox.accessToken, {
       attribution: '© <a href="https://www.mapbox.com/feedback/">Mapbox</a> © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>',
       tileSize: 512,
       zoomOffset: -1
});

var map = L.map('map')
  .addLayer(mapboxTiles)
  .setView([42.3610, -71.0587], 15);
</script>
